
/**
 * @author: zh
 * @date: 2021/11/18 11:30
 * @version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        Zh0202System system = new Zh0202System();
        Zh0202Enterprise e1,e2,e3;
        e1 = new Zh0202AdministrativeStaff("行政管理人员");
        e2 = new Zh0202Employee("员工一号");
        e3 = new Zh0202Employee("员工二号");
        Zh0202Department e4 = new Zh0202Department("研发部门");
        system.addEnterprise(e1);
        system.addEnterprise(e2);
        system.addEnterprise(e3);
        system.addEnterprise(e4);
        e1.sendMsg("员工一号","今天晚上你加班！");
        System.out.println("-----------------------------");
        e4.addEmployee(e2);
        e4.addEmployee(e3);
        e1.sendMsg("研发部门","你们部门今晚加班！");
        System.out.println("-----------------------------");
        Zh0202System system1 = new Zh0202System();
        system.sendNotice("你们全部加班！！");
    }
}
